Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make metadata RE reluctant (stop on first = not last) #51

Merged
merged 1 commit into from Jun 18, 2012

Conversation

lennax
Copy link

@lennax lennax commented Jun 16, 2012

Thanks to @dzerbino for many fixes. The metadata hash added here: d928de1#L2R170
fixed mis-parsing contigs with internal =, but a UnifiedGenotyper metadata line isn't wrapped in angle brackets and is thus still parsed improperly.

This is a very simple tweak to the RE:

(.+)=(.+) will put everything up to the very last = in the first group because + is greedy by default.

(.+?)=(.+) makes the + reluctant, so only the first group of characters that are not =, aka the key, will be in the first group.

jamescasbon pushed a commit that referenced this pull request Jun 18, 2012
Make metadata RE reluctant (stop on first = not last)
@jamescasbon jamescasbon merged commit 9e075dd into jamescasbon:master Jun 18, 2012
gotgenes pushed a commit to gotgenes/PyVCF that referenced this pull request May 13, 2014
Make metadata RE reluctant (stop on first = not last)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants